﻿// -----------------------------------------------------------------------
// <copyright file="LocationInStock_BLL.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace PMSGSC.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using PMSGSC.DAL;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class LocationInStock_BLL
    {
        public static List<LocationInStock> GetAll()
        {
            return LocationInStock_DAL.GetAll();
        }
        public static LocationInStock GetDataById(int partID)
        {
            return LocationInStock_DAL.GetDataById(partID);
        }
        public static bool Insert(LocationInStock LocationInStock)
        {
            return LocationInStock_DAL.Insert(LocationInStock);
        }
        public static List<LocationInStock> GetDataByPartId(int partID, bool isChange)
        {
            return LocationInStock_DAL.GetDataByPartId(partID, isChange);
        }
        public static bool Update(LocationInStock LocationInStock)
        {
            return LocationInStock_DAL.Update(LocationInStock);
        }
        public static bool Delete(LocationInStock LocationInStock)
        {
            return LocationInStock_DAL.Delete(LocationInStock);
        }
        public static List<LocationInStock> GetDataByJobID(int id, bool ischanged)
        {
            return LocationInStock_DAL.GetDataByStockID(id, ischanged);
        }
        public static bool isExits(LocationInStock jp)
        {
            return LocationInStock_DAL.isExits(jp);
        }
        public static LocationInStock isExits2(int partID, int stockID)
        {
            return LocationInStock_DAL.isExits2(partID, stockID); 
        }
        public static bool DeleteByID(LocationInStock jp)
        {
            return LocationInStock_DAL.DeleteByID(jp);
        }
        public static int TestQuantityPart(int partID, int stockID)
        {
            return LocationInStock_DAL.TestQuantityPart(partID, stockID);
        }
        public static bool ExitsInStock(int id)
        {
            return LocationInStock_DAL.ExitsInStock(id);
        }
    }
}
